<script setup lang="ts">

import Login from "./login.vue";
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
import Register from "./register.vue";

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<template>
  <div class="login-box">
    <el-tabs v-model="activeName" tab-position="left" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="登陆" name="first">
        <Login></Login>
      </el-tab-pane>
      <el-tab-pane label="注册" name="second">
        <Register></Register>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<style scoped>
.login-box {
  width: 100vw;
  height: 100vh;
  background: #99d5ff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
</style>